import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/home'
    },
    {
      path: '/home',
      name: 'home',
      component: ()=>import('../pages/home')
    },
    {
      path: '/classify',
      name: 'classify',
      component: ()=>import('../pages/classify')
    },
    {
      path: '/jfmall',
      name: 'jfmall',
      component: ()=>import('../pages/jfmall')
    },
    {
      path: '/person',
      name: 'person',
      component: ()=>import('../pages/person')
    },
    {
      path: '/shopCart',
      name: 'shopCart',
      component: ()=>import('../pages/shopCart')
    },
    {
      path: '/search_page',
      name: 'search_page',
      component: ()=>import('../pages/search_page')
    }
    // {
    //   path: '/my',
    //   name: 'my',
    //   component: ()=>import('../pages/my')
    // },
    // {
    //   path: '/book-detail/:id',
    //   name: 'book-detail',
    //   component: ()=>import('../pages/book-detail')
    // }
  ]
})